package com.limou.pojo;

import java.util.List;

/**
 * 购物车类
 */
public class ShoppingCart {
    private String id;
    private String productId;
    private String productName;
    private Integer productCount;
    private Double productPrice;
    private String totalProductPrice;

    // 商品集合
    private List<Product> productList;

    public ShoppingCart() {
    }

    public ShoppingCart(String id, String productId, String productName, Integer productCount, Double productPrice, String totalProductPrice, List<Product> productList) {
        this.id = id;
        this.productId = productId;
        this.productName = productName;
        this.productCount = productCount;
        this.productPrice = productPrice;
        this.totalProductPrice = totalProductPrice;
        this.productList = productList;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public Integer getProductCount() {
        return productCount;
    }

    public void setProductCount(Integer productCount) {
        this.productCount = productCount;
    }

    public Double getProductPrice() {
        return productPrice;
    }

    public void setProductPrice(Double productPrice) {
        this.productPrice = productPrice;
    }

    public String getTotalProductPrice() {
        return totalProductPrice;
    }

    public void setTotalProductPrice(String totalProductPrice) {
        this.totalProductPrice = totalProductPrice;
    }

    public List<Product> getProductList() {
        return productList;
    }

    public void setProductList(List<Product> productList) {
        this.productList = productList;
    }

    @Override
    public String toString() {
        return "ShoppingCart{" +
                "id='" + id + '\'' +
                ", productId='" + productId + '\'' +
                ", productName='" + productName + '\'' +
                ", productCount=" + productCount +
                ", productPrice=" + productPrice +
                ", totalProductPrice='" + totalProductPrice + '\'' +
                ", productList=" + productList +
                '}';
    }
}
